package org.demo.patten.decorator;

/**
 * @author zhuj
 * @date 2025/3/22
 * @apiNote
 * 装饰器模式
 */
public class Client {
    public static void main(String[] args) {
        Beverage coffee = new Americano();
        coffee = new Milk(coffee);
        coffee = new Sugar(coffee);
        System.out.println("描述："+coffee.getDescription());
        System.out.println("价格:"+coffee.cost());
    }
}
